MAINTAINERCLEANFILES = Makefile.in

MODULE = lirc

# data files for the module
filesdir = $(libdir)/emc/modules/

# the module .so file
INCLUDES = -I. \
           -I$(top_srcdir) \
           -I$(top_srcdir)/src/modules/$(MODULE) \
           -I$(top_srcdir)/src/bin \
           -I$(top_srcdir)/src/modules \
           @ELEMENTARY_CFLAGS@

if USE_MODULE_LIRC

pkgdir = $(libdir)/emc/modules

pkg_LTLIBRARIES = input_lirc.la

input_lirc_la_SOURCES = lirc.c

input_lirc_la_LIBADD = @ELEMENTARY_LIBS@ -llirc_client
input_lirc_la_LDFLAGS = -module -avoid-version
input_lirc_la_CFLAGS = -Wall
input_lirc_la_DEPENDENCIES = $(top_builddir)/config.h

uninstall:
	rm -rf $(DESTDIR)$(libdir)/emc/modules/input_$(MODULE).*

endif
